package com.kunbo.cn.entity.core.purchase;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import com.kunbo.cn.entity.system.SysPermission;

import lombok.Data;

/**
 * 
 * <p>Title: Waybill</p>
 * <p>Description:采购运单实体模型 </p>
 * <p>Company: www.kunbo.cn</p> 
 * @author	yang'f
 * @date	2019年1月21日下午2:36:54
 * @version 1.0
 */
@Entity
@Table(name="db_business_purchase_waybill")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
@EntityListeners(AuditingEntityListener.class)
@Data
public class Waybill implements Serializable{

	/** serialVersionUID*/
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
	private String id;//主键uuid
	private String waybillNumber;//运单号自动生成(CGYD+Time)
	private String purchaseOrderNumber;//采购订单号
	private String purchaseUnit;//采购单位
	private String supplier;//供应商
	private String coalType;//煤种 
	private Double unitPrice;//单价
	private Double contractQuantity;//合同数量
	private String  transportCompany;//运输公司
	private String driverName;//司机名称
	private String vehicleType;//车辆类型
	private String plateNumber;//车牌号 
	private String state;//状态
	@CreatedDate
    private Date createTime;//创建时间
    @LastModifiedDate
    private Date lastModifiedTime;//修改时间

}
